import request from "../../utils/request.js";

//返回评价列表 根据comment.dishId
//query = {pageNum,pageSize,comment}
export function queryAllComment(query){
    return request({
        url: '/dishes-comment/query',
        method: 'get',
        params: query,
        isToken: true
    })
}
//上传评价
//data:comment类
export function addComment(data){
    return request({
        url: '/dishes-comment/add',
        method: 'post',
        data: data,
        isToken: true
    })
}